
<script>
function abc(){
 var name=document.getElementById('search_key');
 name.className="ipt12";
}
function cc(x){
 var name=document.getElementById("con_five_"+x);
 var list=document.getElementById("five"+x);
 name.style.display="none";
 list.className="";
}
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}



</script>
<style type="text/css">.h2{height:50px;text-align:center;font-size:16px;font-family:'黑体','宋体';font-weight:normal;line-height:50px;}</style>
  <!--头部结束-->
  <div class="main">
    <div class="address_tit2">您的位置：<?php echo link_to('ieazy','general/index');?> > <a href="javascript:void(0);">操作结果</a></div>
       <div class="reg">
         <h2 class="h2"><span>ieasy.tv</span> 操作结果</h2>
         <div class="reg_sm">

            <p>尊敬的用户，您好！</p>          <p>
<script type="text/javascript">
    var pp="<?php //echo use_helper('validtxt')?>";
    var qqa="<?php echo $yzm?>";
    var user_lable="<?php echo $user_lable?>";
</script>
         <div class="reg_box">
           <ul>
              <?php
if($user_lable==1)
{
    echo "<li style='padding-left:220px;'>您的登陆结果：</li><p>";
    switch ( $exist )
    {
        case 0 :
            echo "<li  style='padding-left:220px;'>密码错误！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='马上注册' /></div></div>";
            echo "<br />";
            break;
        case 1 :
            echo "<li  style='padding-left:220px;'>登录成功！".image_tag('reg_right.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/home')."';\" value='我的首页' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('general/index')."';\" value='我的首页' /></div></div>";
            break;
        case -1:
            echo "<li  style='padding-left:220px;'>用户不存在！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='马上注册' /></div></div>";
            break;
        default :
            echo "<li  style='padding-left:220px;'>出错！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='马上注册' /></div></div>";//link_to('点击这里，重新登录', 'user/index');
            break;
    }
}
else if($user_lable==0)
{
    echo "您的注册结果："."<p>";
    switch ( $exist )
    {
        case 0 :
            echo "<li  style='padding-left:220px;'>注册失败！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='马上注册' /></div></div>";
            break;
        case 1 :
            echo "<li  style='padding-left:220px;'>注册成功！".image_tag('reg_right.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='马上登录' />";
            break;
        case -1:
            echo "<li  style='padding-left:220px;'>用户已存在,注册失败！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='重新注册' /></div></div>";
            break;
        default :
            echo "<li  style='padding-left:220px;'>出错！".image_tag('reg_wrong.jpg')."</li>";
            echo "<div class='submit'><input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/login')."';\" value='重新登录' />　　
              <input name='a2' class='sear01' type='button' onclick=\"window.location.href='".url_for('user/register')."';\" value='重新注册' /></div></div>";
            break;
    }
}
else if($user_lable==-1)
{
    echo "您的查找结果："."<p>";
    switch ( $exist )
    {
        case 0 :
            echo "找不到此用户！";
            echo image_tag('reg_wrong.jpg');
            echo link_to('点击这里，重新查找', 'user/getpassword');
            echo "<br />";
            echo link_to('点击这里，进行注册', 'user/register');
            break;
        case 1 :
            echo "查找成功！,您的密码为：".$userpwd;
            echo image_tag('reg_right.jpg');
            echo link_to('点击这里，进行登录', 'user/index');
            break;
        default :
            echo "出错！";
            echo image_tag('reg_wrong.jpg');
            echo link_to('点击这里，重新查找', 'user/getpassword');
            echo "<br />";
            echo link_to('点击这里，进行注册', 'user/register');
            break;
    }
}
         ?>
         </p>
          </ul>
         </div>
       </div>
  </div>












